//
//  XCNewSongNewDieModel.m
//  SoundOfNature
//
//  Created by 梁新昌 on 16/3/17.
//  Copyright © 2016年 梁新昌. All rights reserved.
//

#import "XCNewSongNewDieModel.h"

@implementation XCNewSongNewDieModel
- (void)dealloc {
    
    [_name release];

    [_singerName release];
    [_picUrl release];
    [_singerPicUrl release];
    
    [super dealloc];
}
- (instancetype)initWithDataSource:(NSDictionary *)dataSource
{
    self = [super initWithDataSource:dataSource];
    if (self) {
        NSMutableArray *mutableArray = [NSMutableArray arrayWithCapacity:0];
        for (NSDictionary  *dic in self.songList) {
            XCInTheSongList *intheSongList = [[XCInTheSongList alloc] initWithDataSource:dic];
            [mutableArray addObject:intheSongList];
            [intheSongList release];
        }
        self.songList = [NSArray arrayWithArray:mutableArray];
    }
    return self;
}
@end
